package com.fausto.learnimprint.log.controller

import com.fausto.learnimprint.log.BaseLog
import lombok.EqualsAndHashCode
import org.springframework.data.mongodb.core.mapping.Document

@Document("controller_log")
@EqualsAndHashCode(callSuper =  true)
data class ControllerLog(
    var url: String?,
    var requestMethod: String?,
    var methodName: String?,
    var args: String?,
    var returnValue: String?
): BaseLog() {
    constructor() : this(
        null,
        null,
        null,
        null,
        null,
    )
}